﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization.Json;
using System.Runtime.Serialization;

namespace digitwhu.Logic.ClassLibrary
{
    #region 食堂有关的可序列化类
    [DataContract]
    public class RCanteenWindow
    {
        //食堂窗口可序列化类，来自于表CanShopWindow
        [DataMember]
        public int canWindowId; //食堂窗口的编号
        [DataMember]
        public string name;
        [DataMember]
        public double grade;    //食堂窗口的评分
        [DataMember]
        public int canteenId;   //窗口所属于食堂编号
    }
    [DataContract]
    public class RCanMessage
    {
        //食堂留言类，来自于表CanMessage
        [DataMember]
        public int canteenId;//食堂编号
        [DataMember]
        public RUserInfo userInfo;  //用户信息
        [DataMember]
        public string dateTime;    //留言日期
        [DataMember]
        public string contents;   //留言内容
    }
    [DataContract]
    public class RCanRecommend
    {
        //食堂美食推荐类，来自于表CanRecommenFood
        [DataMember]
        public RUserInfo userInfo;  //用户信息
        [DataMember]
        public string dateTime;    //推荐日期
        [DataMember]
        public string contents;   //推荐内容
        [DataMember]
        public string picture;   //图片位置
        [DataMember]
        public int recommendId;   //推荐记录的id
    }
    #endregion
    #region 寝室相关可序列化类
    [DataContract]
    public class RDormInfo
    {
        //食堂美食推荐类，来自于表CanRecommenFood
        [DataMember]
        public List<RUserInfo> userInfo;  //用户信息
        [DataMember]
        public string dormName;//公寓名字
    }
    #endregion
    #region 教室相关的可序列化类
    [DataContract]
    public class RTeachClassRoom
    {
        //食堂美食推荐类，来自于表CanRecommenFood
        [DataMember]
        public List<int> roomList;  //教师名字列表
        [DataMember]
        public int floorNumber; //楼层
    }
    [DataContract]
    public class RTeachMessage
    {
        //食堂美食推荐类，来自于表CanRecommenFood
        [DataMember]
        public RUserInfo user;  //用户信息
        [DataMember]
        public string datetime; //留言日期
        [DataMember]
        public string contents; //留言内容
    }
    #endregion
}